import request from '@/utils/request'

/**
 * 获取保养执行列表详情
 * @param List
 */
export function listUpKeep(query, pagination) {
  return request({

    url: `/mes/m/repair/upkeep/execute/list?page=${pagination.page}&pageSize=${pagination.pageSize}`,
    method: 'post',
    data: query
  })
}
/**
 * 查询/修改保养执行单条数据
 * @param update
 */
export function detailUpKeep(id) {
  return request({

    url: `/mes/m/repair/upkeep/execute/getById/${id}`,
    method: 'get'
  })
}
/**
 * 新增或修改
 * @param update
 */
export function saveUpKeep(data) {
  return request({
    url: `/mes/m/repair/upkeep/execute/save`,
    method: 'put',
    data
  })
}
